import React from 'react'
import "../../style/home/home.scss"
import Header from '../../components/home/Header'
import MySwiper from "../../components/home/MySwiper"
import Nav from '../../components/home/Nav'
import Seckill from '../../components/home/Seckill'
import Sell from '../../components/home/Sell'
import { useLocation } from 'react-router-dom';
export default function Home() {
  const location = useLocation();
  return (
    <div className='home'>
      <Header address={location.state?location.state.address:"西安"}/>
      <MySwiper />
      <Nav />
      <Seckill />
      <Sell />

    </div>
  )
}
